import request from '@/utils/request'

export function fetchDataExtractionList(data) {
  return request({
    url: '/system/dataextraction/DataExtraction/list',
    method: 'post',
    data
  })
}

export function getDataExtraction(id) {
  return request({
    url: '/system/dataextraction/DataExtraction/detail/' + id,
    method: 'get'
  })
}

export function createDataExtraction(data) {
  return request({
    url: '/system/dataextraction/DataExtraction/add',
    method: 'post',
    data
  })
}

export function updateDataExtraction(data) {
  return request({
    url: '/system/dataextraction/DataExtraction/update',
    method: 'post',
    data
  })
}

export function deleteDataExtraction(ids) {
  return request({
    url: '/system/dataextraction/DataExtraction/delete',
    method: 'post',
    data: { ids }
  })
}
export function createDataExtractionMore(data) {
  return request({
    url: '/system/dataextraction/DataExtraction/batchAdd',
    method: 'post',
    data
  })
}



